﻿using System.Windows.Forms;

namespace NS_Client
{
    /// <summary>Provides functionality to make calls to a listener</summary>
    public interface IActioner
    {
        /// <summary>Sets the ViewController listener</summary>
        /// <param name="controller"></param>
        void SetListener(ViewController controller);
    }

    /// <summary>Provides functionality to be notifed of changes to IObserverable types</summary>
    public interface IObserver
    {
        /// <summary>Notifies Observer of changes</summary>
        void notify(object Data);
    }

    public class NS_UI : Form, IObserver, IActioner
    {
        public virtual void SetListener(ViewController controller) {}

        public virtual void notify(object data) {}
    }
}
